package top.xzxsrq.fileviewutils.service;

import top.xzxsrq.fileviewutils.entity.SysUser;
import top.xzxsrq.fileviewutils.entity.SysUserSearch;
import top.xzxsrq.fileviewutils.entity.SysUserWithRole;
import top.xzxsrq.web.utils.AjaxResult;

public interface UserService {
    AjaxResult updatePassword(String oldPassword, String newPassword);

    AjaxResult resetPassword(String username, String password);

    AjaxResult userList(SysUserSearch userSearch, int pageNum, int pageSize);

    AjaxResult addUser(SysUserWithRole sysUserWithRole);

    AjaxResult delUser(String userId);

    AjaxResult resetInitPassword(String newPassword);

    AjaxResult getUserById(String userId);

    AjaxResult updateUser(SysUser sysUser);

    AjaxResult updateUserSysConfig(String userSysConfig);

    AjaxResult getInfo();

}
